<?php 
$site_name = apAuthpuppyConfig::getConfigOption("site_name","");

if ($site_name != '') {
  sfContext::getInstance()->getResponse()->setTitle($site_name);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php use_stylesheet('jQuery/themes/ui-lightness/jquery-ui-1.8.2.custom.css') ?>
    <?php use_stylesheet('devoops/plugins/bootstrap/bootstrap.css') ?>
    <?php use_stylesheet('devoops/plugins/jquery-ui/jquery-ui.min.css') ?>
    <?php use_stylesheet('devoops/plugins/fancybox/jquery.fancybox.css') ?>
    <?php use_stylesheet('devoops/plugins/fullcalendar/fullcalendar.css') ?>
    <?php use_stylesheet('devoops/plugins/xcharts/xcharts.min.css') ?>
    <?php use_stylesheet('devoops/plugins/select2/select2.css') ?>
    <?php use_stylesheet('devoops/plugins/justified-gallery/justifiedGallery.css') ?>
    <?php use_stylesheet('devoops/css/style.css') ?>
    <?php include_stylesheets() ?>

	<?php use_javascript('devoops/plugins/jquery/jquery.min.js') ?>
	<?php use_javascript('devoops/plugins/jquery-ui/jquery-ui.min.js') ?>
	<?php use_javascript('devoops/plugins/bootstrap/bootstrap.min.js') ?>
	<?php use_javascript('devoops/plugins/justified-gallery/jquery.justifiedGallery.min.js') ?>
	<?php use_javascript('devoops/plugins/tinymce/tinymce.min.js') ?>
	<?php use_javascript('devoops/plugins/tinymce/jquery.tinymce.min.js') ?>
	<?php use_javascript('devoops/js/devoops.js') ?>

    <?php include_javascripts() ?>

    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Righteous' rel='stylesheet' type='text/css'>
    </head>
    <body>
	<div id="screensaver">
		<canvas id="canvas"></canvas>
		<i class="fa fa-lock" id="screen_unlock"></i>
	</div>
	<div id="modalbox">
		<div class="devoops-modal">
			<div class="devoops-modal-header">
				<div class="modal-header-name">
					<span>Basic table</span>
				</div>
				<div class="box-icons">
					<a class="close-link">
						<i class="fa fa-times"></i>
					</a>
				</div>
			</div>
			<div class="devoops-modal-inner">
			</div>
			<div class="devoops-modal-bottom">
			</div>
		</div>
	</div>
	<header class="navbar">
		<div class="container-fluid expanded-panel">
			<div class="row">
				<div id="logo" class="col-xs-12 col-sm-2">
					<a href="#">WifiAds</a>
				</div>
				<div id="top-panel" class="col-xs-12 col-sm-10">
					<div class="row">
						<div class="col-xs-8 col-sm-4">
							<a href="#" class="show-sidebar">
							  <i class="fa fa-bars"></i>
							</a>
							<div id="search">
								<input type="text" placeholder="search"/>
								<i class="fa fa-search"></i>
							</div>
						</div>
						<div class="col-xs-4 col-sm-8 top-panel-right">
							<ul class="nav navbar-nav pull-right panel-menu">
								<li>
									12:30 AM
								</li>
								<li class="hidden-xs">
									<a href="#" class="modal-link">
										<i class="fa fa-bell"></i>
										<span class="badge">1</span>
									</a>
								</li>
								<li class="dropdown">
									<a href="#" class="dropdown-toggle account" data-toggle="dropdown">
										<div class="avatar">
											<img src="img/avatar.jpg" class="img-rounded" alt="avatar" />
										</div>
										<i class="fa fa-angle-down pull-right"></i>
										<div class="user-mini pull-right">
											<span class="welcome">Welcome,</span>
											<span>WifiAds</span>
										</div>
									</a>
									<ul class="dropdown-menu">
										<li>
											<a href="#">
												<i class="fa fa-user"></i>
												<span>Profile</span>
											</a>
										</li>
										<li>
											<a href="ajax/page_messages.html" class="ajax-link">
												<i class="fa fa-envelope"></i>
												<span>Messages</span>
											</a>
										</li>
										<li>
											<a href="ajax/gallery_simple.html" class="ajax-link">
												<i class="fa fa-picture-o"></i>
												<span>Albums</span>
											</a>
										</li>
										<li>
											<a href="ajax/calendar.html" class="ajax-link">
												<i class="fa fa-tasks"></i>
												<span>Tasks</span>
											</a>
										</li>
										<li>
											<a href="#">
												<i class="fa fa-cog"></i>
												<span>Settings</span>
											</a>
										</li>
										<li>
											<a href="#">
												<i class="fa fa-power-off"></i>
												<span>Logout</span>
											</a>
										</li>
									</ul>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</header>
	<div id="main" class="container-fluid" style="min-height: 583px">
        <!--[if lt IE 7]> <div style=' clear: both; height: 59px; padding:0 0 0 15px; position: relative; text-align: center;'> <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a></div> <![endif]-->
		<div class="row">
			<div id="sidebar-left" class="col-xs-2 col-sm-2">
				<?php include_partial('home/menubar'); ?>
			</div>
		        <?php echo $sf_content ?>
		</div>
	</div>
    </body>
</html>
